﻿using System.Threading.Tasks;

namespace Xlit.Standard.Data
{
    /// <summary>
    ///  数据事务
    /// </summary>
    public interface ITransaction : IDependency
    {
        void BeginTransaction();
        void Commit();
        void RollBack();
        Task BeginTransactionAsync();
        Task CommitAsync();
        Task RollBackAsync();
    }
}
